package com.homework.str;

public class test6 {
  public static void main(String[] args) {
    // 将字符串“abcdefg”倒序生成一个新的字符串
    StringBuilder s1 = new StringBuilder("abcdefg");
    String s = s1.reverse().toString();
    System.out.println(s);
  }
}
